<h2><?php print $header?></h2>

<?php 
foreach( $entries->result( ) as $row ){
    echo "<p>" . $row->title . "</p>";
}
?>

<p>Neuer Eintrag</p>
<?php echo form_open( 'guestbook' ); ?>
<fieldset>
	<ol>
    	<li>
			<?php print form_label( $this->lang->line('guestbook_name'), 'name')?>
			<?php print form_input( 'name', '', 'id="name" class="text"' )?>
		</li>
    	<li>
			<?php print form_label( $this->lang->line('guestbook_email'), 'email')?>
			<?php print form_input( 'email', '', 'id="email" class="text"' )?>
		</li>
    	<li>
			<?php print form_label( $this->lang->line('guestbook_title'), 'title')?>
			<?php print form_input( 'title', '', 'id="title" class="text"' )?>
		</li>
    	<li>
			<?php print form_label( $this->lang->line('guestbook_body'), 'body')?>
			<?php print form_textarea( 'body', '', 'id="body" class="text"' )?>
		</li>
		<li class="submit">
			<div class="buttons">
                <button type="submit" class="positive" name="submit" value="submit">
                	<?php print $this->bep_assets->icon( 'disk' );?>
                	<?php print $this->lang->line( 'general_save' )?>
                </button>
                <a href="<?php print site_url( 'article/user/article' )?>" class="negative">
                	<?php print $this->bep_assets->icon( 'cross' );?>
                	<?php print $this->lang->line( 'general_cancel' )?>
                </a>
            </div>
		</li>
	</ol>
</fieldset>
<?php echo form_close( ); ?>